//
//  RHDeviceModel.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2023/8/10.
//

#import "RHDeviceModel.h"

@implementation RHDeviceModel
+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper
{
    return @{@"device_id":@"id",
             @"theId" : @"_id"
    };
}

//
//- (void)setP1_R2:(NSDictionary *)P1_R2{
//    _P1_R2 = P1_R2;
//    NSString *P1_Ppacksn = _P1_R2[@"P1_Ppacksn"];
//    if (P1_Ppacksn&&[P1_Ppacksn length]>0&&(!self.packsn||self.packsn.length == 0)) {
//        self.packsn = P1_Ppacksn;
//    }
//
//    self.p_swver = _P1_R2[@"P1_swver"];
//    self.P_FwName = _P1_R2[@"P1_FwName"]?_P1_R2[@"P1_FwName"]:self.P_FwName;
//}

//- (void)setP2_R2:(NSDictionary *)P2_R2{
//    _P2_R2 = P2_R2;
//    NSString *P2_Ppacksn = _P2_R2[@"P2_Ppacksn"];
//    if (P2_Ppacksn&&[P2_Ppacksn length]>0&&(!self.packsn||self.packsn.length == 0)) {
//        self.packsn = P2_Ppacksn;
//    }
//    self.P_FwName = _P2_R2[@"P2_FwName"]?_P2_R2[@"P2_FwName"]:self.P_FwName;
//}
//
//- (void)setP3_R2:(NSDictionary *)P3_R2{
//    _P3_R2 = P3_R2;
//    NSString *P3_Ppacksn = _P3_R2[@"P3_Ppacksn"];
//    if (P3_Ppacksn&&[P3_Ppacksn length]>0&&(!self.packsn||self.packsn.length == 0)) {
//        self.packsn = P3_Ppacksn;
//    }
//    self.P_FwName = _P3_R2[@"P3_FwName"]?_P3_R2[@"P3_FwName"]:self.P_FwName;
//}
//
//- (void)setP4_R2:(NSDictionary *)P4_R2{
//    _P4_R2 = P4_R2;
//    NSString *P4_Ppacksn = _P4_R2[@"P4_Ppacksn"];
//    if (P4_Ppacksn&&[P4_Ppacksn length]>0&&(!self.packsn||self.packsn.length == 0)) {
//        self.packsn = P4_Ppacksn;
//    }
//    self.P_FwName = _P4_R2[@"P4_FwName"]?_P4_R2[@"P4_FwName"]:self.P_FwName;
//}
//
//- (void)setM_R2:(NSDictionary *)M_R2{
//    _M_R2 = M_R2;
//    self.m_swver = _M_R2[@"M_swver"];
//    self.packNum = [_M_R2[@"M_Ppacknum"] integerValue];
//    self.M_FwName = _M_R2[@"M_FwName"];
//}
//
//- (void)setE_UserParams:(NSDictionary *)E_UserParams{
//    _E_UserParams = E_UserParams;
//    self.E_FwName = _E_UserParams[@"E_FwName"];
//}
//
//- (void)setRead:(NSDictionary *)Read{
//    _Read = Read;
//    self.e_swver = _Read[@"SwVer"];
//}

//- (void)setDesc:(NSString *)desc{
//    _desc = desc;
//    self.descModel = [DeviceDescModel yy_modelWithJSON:_desc];
//}
//
//- (void)setPacksn:(NSString *)packsn{
//    _packsn = packsn;
//    _packsn = [NSString removalSpecialCharacters:_packsn];
//}


@end
